package com.sita.tboard.ui.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.sita.bike.R;

import butterknife.Bind;
import butterknife.OnClick;

//import com.jeremyfeinstein.slidingmenu.lib.app.SlidingFragmentActivity;

public class MainTainFragment extends Fragment {
    private static MainTainFragment fragment;
    @Bind(R.id.back_menu)
    public ImageView img_back;
    public MainTainFragment() {
    }


    public static MainTainFragment getInstance() {
        if (fragment == null) {
            synchronized (MainTainFragment.class) {
                if (fragment == null) {
                    fragment = new MainTainFragment();
                }
            }

        }
        return fragment;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.fragment_main_tain, container, false);
    }

    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
    }

    @Override
    public void onDetach() {
        super.onDetach();
    }

    @OnClick(R.id.back_menu)
    public void backMenu(){
//        SlidingFragmentActivity s = (SlidingFragmentActivity) getActivity();
//        s.getSlidingMenu().toggle();
    }

}
